import 'package:lz_login/generated/json/base/json_field.dart';
import 'package:lz_login/generated/json/user_login_rsp_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class UserLoginRspEntity {

	int? code;
	UserLoginRspData? data;
	String? msg;
	bool? success;
  
  UserLoginRspEntity();

  factory UserLoginRspEntity.fromJson(Map<String, dynamic> json) => $UserLoginRspEntityFromJson(json);

  Map<String, dynamic> toJson() => $UserLoginRspEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class UserLoginRspData {

	String? account;
	int? adminType;
	String? application;
	List<dynamic>? apps;
	dynamic avatar;
	dynamic birthday;
	dynamic email;
	String? id;
	String? lastLoginAddress;
	String? lastLoginBrowser;
	String? lastLoginIp;
	String? lastLoginOs;
	String? lastLoginTime;
	dynamic memberRoleRelation;
	String? name;
	dynamic nickName;
	String? phone;
	int? sex;
	dynamic tel;
	String? token;
	List<UserLoginRspDataUserMainOrgAndMemberVOS>? userMainOrgAndMemberVOS;
  
  UserLoginRspData();

  factory UserLoginRspData.fromJson(Map<String, dynamic> json) => $UserLoginRspDataFromJson(json);

  Map<String, dynamic> toJson() => $UserLoginRspDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class UserLoginRspDataUserMainOrgAndMemberVOS {

	dynamic mainOrgId;
	dynamic mainOrgName;
	dynamic mainOrgNo;
	String? memberCertificationNumber;
	String? memberCode;
	String? memberId;
	String? memberName;
  
  UserLoginRspDataUserMainOrgAndMemberVOS();

  factory UserLoginRspDataUserMainOrgAndMemberVOS.fromJson(Map<String, dynamic> json) => $UserLoginRspDataUserMainOrgAndMemberVOSFromJson(json);

  Map<String, dynamic> toJson() => $UserLoginRspDataUserMainOrgAndMemberVOSToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}